package com.siwei.mes.entity.experiment;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 试验台账抽样信息日志记录表(ExperimentSampleSmokeLog)实体类
 *
 * @author linzi
 * @since 2024-01-01 13:54:02
 */
@Data
@Accessors(chain = true)
@Table(name = "pk_experiment_sample_smoke_log")
@ApiModel(value = "ExperimentSampleSmokeLog", description = "试验台账抽样信息日志记录表")
public class ExperimentSampleSmokeLog implements Serializable {
    private static final long serialVersionUID = 288818673787265878L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "试验台账抽样信息日志记录表主键ID", name = "id")
    private Long id;
    /**
     * 操作用户id
     */
    @Column(name = "user_id")
    @ApiModelProperty(value = "操作用户id", name = "userId")
    private Long userId;
    /**
     * 操作用户名称
     */
    @Column(name = "user_name")
    @ApiModelProperty(value = "操作用户名称", name = "userName")
    private String userName;
    /**
     * 操作时间
     */
    @Column(name = "oper_time")
    @ApiModelProperty(value = "操作时间", name = "operTime")
    private Date operTime;
    /**
     * 试验台账id
     */
    @Column(name = "experiment_id")
    @ApiModelProperty(value = "试验台账id", name = "experimentId")
    private Long experimentId;
    /**
     * 抽样记录主键id
     */
    @Column(name = "smoke_id")
    @ApiModelProperty(value = "抽样记录主键id", name = "smokeId")
    private Long smokeId;
    /**
     * 操作样品json
     */
    @Column(name = "oper_json")
    @ApiModelProperty(value = "操作样品json", name = "operJson")
    private JSONObject operJson;
    /**
     * 对应抽样试验项目code  pk_experiment_sample_test_project
     */
    @Column(name = "sample_test_project_code")
    @ApiModelProperty(value = "对应抽样试验项目code  pk_experiment_sample_test_project", name = "sampleTestProjectCode")
    private String sampleTestProjectCode;
    /**
     * 对应抽样试验项目名称  pk_experiment_sample_test_project
     */
    @Column(name = "sample_test_project_name")
    @ApiModelProperty(value = "对应抽样试验项目名称  pk_experiment_sample_test_project ", name = "sampleTestProjectName")
    private String sampleTestProjectName;
    /**
     * 对应抽样试验项目json    pk_experiment_sample_test_project
     */
    @Column(name = "sample_test_project_json")
    @ApiModelProperty(value = "对应抽样试验项目json    pk_experiment_sample_test_project", name = "sampleTestProjectJson")
    private JSONArray sampleTestProjectJson;
}
